home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-10-18 | 4.6 KB | 184 lines |
- # Begin Generic
- STDWIN= ..
- CONF= $(STDWIN)/conf
- H= $(STDWIN)/h
- TOOLS= $(STDWIN)/tools
- ALFA= $(STDWIN)/alfa
- MG1= $(STDWIN)/mg1
- X11= $(STDWIN)/x11
- X11LIBS= $(X11)/lib.a $(LIBX11)
- LIBX11= $(LIBXLIB)/libX11.a
- LIBXT= $(LIBXLIB)/libXaw.a $(LIBXLIB)/libXt.a
- XTLIBS= $(STDWIN)/xt/lib.a $(LIBXT) $(LIBX11)
- STUBS= $(STDWIN)/stubs
- INCLUDES= -I$(H) $(SYSINCLUDES) $(SITEINCLUDES) $(LINCLUDES)
- DEFS= $(SYSDEFS) $(SITEDEFS) $(LDEFS)
- CPPFLAGS= $(DEFS) $(INCLUDES)
- OPTIONS= $(SYSOPTIONS) $(SITEOPTIONS) $(LOPTIONS)
- CFLAGS= $(CPPFLAGS) $(OPTIONS)
- LDFLAGS= $(OPTIONS)
- LINTFLAGS= -bhv
- LINT= lint
- # End Generic
- LIBX11= /usr/lib/libX11.a
- # Begin Make.conf
-
- SRCS= test0.c test1.c test2.c test3.c test4.c thand.c \
- hello.c bits.c faced.c klok.c charset.c dklok.c vtdemo.c \
- tetris.c testpollevent.c
- OBJS= test0.o test1.o test2.o test3.o test4.o thand.o \
- hello.o bits.o faced.o klok.o charset.o dklok.o vtdemo.o \
- tetris.o testpollevent.c
-
- XLIBES= $(X11LIBS)
- ALIBES= ../alfa/lib.a -ltermlib
- MLIBES= $(MG1)/lib.a $(WINLIBS)
- SLIBES= $(STUBS)/lib.a /usr/alib/libamunix.a
-
- all: allx alla # allm alls
- allx: test0.X test1.X test2.X test3.X test4.X hello.X bits.X \
- charset.X klok.X dklok.X faced.X vtdemo.X \
- tetris.X testpollevent.X
- alla: test0.A test1.A test2.A test3.A test4.A hello.A bits.A \
- charset.A klok.A dklok.A faced.A vtdemo.A tetris.A
- allm: test0.M test1.M test2.M test3.M test4.M hello.M bits.M \
- charset.M klok.M dklok.M faced.M vtdemo.M tetris.M
- alls: test0.S test1.S test2.S test3.S test4.S hello.S bits.S \
- charset.S klok.S dklok.S faced.S vtdemo.S tetris.S
-
- test0.X test1.X test2.X test3.X test4.X thand.X \
- hello.X bits.X faced.X klok.X dklok.X vtdemo.X tetris.X: $(XLIBES)
-
- test0.S test1.S test2.S test3.S test4.S thand.S \
- hello.S bits.S faced.S klok.S dklok.S vtdemo.S tetris.S: $(SLIBES)
-
- .SUFFIXES: .X .A .M .S
-
- .o.X:
- $(CC) $(LDFLAGS) $*.o $(XLIBES) -lm -o $*.X
-
- .o.A:
- $(CC) $(LDFLAGS) $*.o $(ALIBES) -lm -o $*.A
-
- .o.M:
- $(CC) $(LDFLAGS) $*.o $(MLIBES) -lm -o $*.M
-
- .o.S:
- $(CC) $(LDFLAGS) $*.o $(SLIBES) -lm -o $*.S
-
- DESTBIN= /userfs3/amoeba/bin
-
- install:: klok.X
- install -s -m 755 klok.X $(DESTBIN)/klok
-
- tetris: tetris.X
- mv tetris.X tetris
-
- # End Make.conf
- # Begin Rules
- all: Makefile
-
- Makefile: $(CONF)/Generic $(CONF)/Rules $(CONF)/mkmk Make.conf
- @echo "Makefile out-of-date -- rerun $(CONF)/mkmk"; exit 1
-
- depend: $(SRCS)
- $(CONF)/mkdep $(CPPFLAGS) $(SRCS) >@mkdep
-
- tags: $(SRCS) $(HDRS)
- ctags -w $(SRCS) $(HDRS)
-
- clean::
- -rm -f core *.o [,@#]*
-
- clobber:: clean
- -rm -f lib.a tags *.[A-Z]
-
- lint: $(SRCS) $(HDRS)
- $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(SRCS) $(LINTLIBS)
- # End Rules
- test0.o: test0.c
- test0.o: ../h/stdwin.h
- test0.o: ../h/stdevent.h
- test0.o: ../h/stdtext.h
- test1.o: test1.c
- test1.o: ../h/stdwin.h
- test1.o: ../h/stdevent.h
- test1.o: ../h/stdtext.h
- test2.o: test2.c
- test2.o: ../h/stdwin.h
- test2.o: ../h/stdevent.h
- test2.o: ../h/stdtext.h
- test3.o: test3.c
- test3.o: ../h/stdwin.h
- test3.o: ../h/stdevent.h
- test3.o: ../h/stdtext.h
- test4.o: test4.c
- test4.o: ../h/stdwin.h
- test4.o: ../h/stdevent.h
- test4.o: ../h/stdtext.h
- thand.o: thand.c
- thand.o: ../h/stdwin.h
- thand.o: ../h/stdevent.h
- thand.o: ../h/stdtext.h
- thand.o: /usr/include/signal.h
- hello.o: hello.c
- hello.o: ../h/stdwin.h
- hello.o: ../h/stdevent.h
- hello.o: ../h/stdtext.h
- bits.o: bits.c
- bits.o: ../h/stdwin.h
- bits.o: ../h/stdevent.h
- bits.o: ../h/stdtext.h
- faced.o: faced.c
- faced.o: /usr/include/stdio.h
- faced.o: ../h/stdwin.h
- faced.o: ../h/stdevent.h
- faced.o: ../h/stdtext.h
- klok.o: klok.c
- klok.o: ../h/tools.h
- klok.o: ../h/configure.h
- klok.o: /usr/include/stdio.h
- klok.o: /usr/include/ctype.h
- klok.o: /usr/include/strings.h
- klok.o: ../h/l_defs.h
- klok.o: ../h/stdwin.h
- klok.o: ../h/stdevent.h
- klok.o: ../h/stdtext.h
- klok.o: /usr/include/math.h
- klok.o: /usr/include/sys/time.h
- klok.o: /usr/include/time.h
- klok.o: ./bsdsetdate.c
- charset.o: charset.c
- charset.o: ../h/tools.h
- charset.o: ../h/configure.h
- charset.o: /usr/include/stdio.h
- charset.o: /usr/include/ctype.h
- charset.o: /usr/include/strings.h
- charset.o: ../h/l_defs.h
- charset.o: ../h/stdwin.h
- charset.o: ../h/stdevent.h
- charset.o: ../h/stdtext.h
- dklok.o: dklok.c
- dklok.o: /usr/include/ctype.h
- dklok.o: /usr/include/stdio.h
- dklok.o: /usr/include/time.h
- dklok.o: ../h/stdwin.h
- dklok.o: ../h/stdevent.h
- dklok.o: ../h/stdtext.h
- dklok.o: ./sevenseg.h
- vtdemo.o: vtdemo.c
- vtdemo.o: ../h/stdwin.h
- vtdemo.o: ../h/stdevent.h
- vtdemo.o: ../h/stdtext.h
- vtdemo.o: ../h/vt.h
- tetris.o: tetris.c
- tetris.o: ../h/stdwin.h
- tetris.o: ../h/stdevent.h
- tetris.o: ../h/stdtext.h
- tetris.o: /usr/include/stdio.h
- testpollevent.o: testpollevent.c
- testpollevent.o: /usr/include/stdio.h
- testpollevent.o: ../h/stdwin.h
- testpollevent.o: ../h/stdevent.h
- testpollevent.o: ../h/stdtext.h
-